//变量
@bg-color:#b7d4a8;
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font: bold 20px "Courier";
}
.main{
    width: 360px;
    height: 420px;
    border-radius: 20px;
    border: 10px solid black;
    background-color: @bg-color;
    margin: calc((100vh - 420px)/2) auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: space-around;
    .stage{
        width: 304px;
        height: 304px;
        border: 2px solid black;
        // margin: 10px auto;
        position: relative;
        #snack{
            &>div{
                width: 10px;
                height: 10px;
                background: #000;
                border: 1px solid @bg-color;
                position: absolute;
            }
        }
        &>#food{
            width: 10px;
            height: 10px;
            position: absolute;
            left: 40px;
            top: 100px;
            display: flex;
            flex-flow: row wrap;
            justify-content: space-between;
            align-content: space-between;
            &>div{
                width: 4px;
                height: 4px;
                background: #f00;
                animation: food 3s linear infinite;
                // transform: rotate(45deg);
            }
        }
    }
    .score-panel{
        width: 300px;
        display: flex;
        justify-content: space-between;
    }
}
@keyframes food{
    from{
        transform: rotate(0);
    }
    to{
        transform: rotate(360deg);
    }
}